package com.phonegap.gwt.console.client;

import com.google.gwt.core.client.GWT;
public class Logger  {
    public native boolean isAvailable() /*-{
    if(!(typeof($wnd.console) == "undefined"))
    {
    return true;
    }
    return false;
}-*/;

    
    public Logger() {
    	super();
    }
    
	  public void logall(String message) {
		  GWT.log(message);
		  log(message);
	  }
	  

	
	  public native void log(String message) /*-{
	  	if((typeof($wnd.console) == "undefined"))
    	{ 
    		return;
    	}
    
   $wnd.console.log(message);
	  }-*/;
	
}
